package org.papervision3d.materials
{
    import org.papervision3d.core.proto.MaterialObject3D;

    // The WireframeMaterial class creates a wireframe material, where only the outlines of the faces are drawn.
    // Materials collects data about how objects appear when rendered.
    public class WireColorMaterial extends MaterialObject3D
    {
        // The WireframeMaterial class creates a wireframe material, where only the outlines of the faces are drawn.
        // @param    asset               A BitmapData object.
        // @param    initObject          [optional] - An object that contains additional properties with which to populate the newly created material.
        public function WireColorMaterial(color:Number = 0xFF00FF, wirecolor:Number = 0x000000, alpha:Number = 1, wirealpha:Number = 1)
        {
            super(null);
    
            this.fillColor = color;
            this.fillAlpha = alpha;
            this.lineColor = wirecolor;
            this.lineAlpha = wirealpha;
    
            this.doubleSided = true;
        }
    
        // Returns a string value representing the material properties in the specified WireframeMaterial object.
        // @return   A string.
        public override function toString(): String
        {
            return 'WireColorMaterial color:' + this.fillColor + ' border:' + this.lineColor;
        }
    }
}
